<?php

header( "Content-Type:text/html;charset=utf-8" );

define( 'MODE_DIR' , dirname( __FILE__ ) . '/' );
define( 'ALL_PS' , 'RenLong' );

//ini_set( "error_reporting" , "E_ALL & ~E_NOTICE" );

$app = trim( $_REQUEST['app'] ) ? trim( $_REQUEST['app'] ) : 'defaults';
$act = trim( $_REQUEST['act'] ) ? trim( $_REQUEST['act'] ) : 'index';

include_once 'web/db.php';
include_once MODE_DIR . 'web/' . $app . '.php';

$cont = new $app();

$cont->$act();
?>